/************************************************************
* author: alexander.aivars <alexander.aivars&#64;svt.se>
* $Date:2007-12-19 11:39:12 +0100 (Wed, 19 Dec 2007) $
* $Revision:196 $
* $HeadURL:svn://stoiis03.internt.svt.se/SVTiFLASH/trunk/SVTSE/Source/Classes/se/svt/web/models/HighScoreRequestData.as $
* $Id:HighScoreRequestData.as 196 2007-12-19 10:39:12Z alai $
************************************************************/
package se.svt.web.models
{
	import flash.events.IEventDispatcher;

	public class HighScoreRequestData extends NetData
	{
		
		private var _snapshotId:int = -1;
		private var _startRank:int = -1;
		private var _numOfHighscores:int = -1;
		private var _getScore:uint = 1;
		private var _getData:uint = 0;
		private var _getPlayerName:uint = 1;
		private var _showEmptyRanks:uint = 0;
		
		public function HighScoreRequestData(target:IEventDispatcher=null)
		{
			//TODO: implement function
			super(target);
		}
		
		public function set snapshotId(id:int):void { _snapshotId = id; }
		public function set startRank(rank:int):void { _startRank = rank; }
		public function set numOfHighscores(count:int):void { _numOfHighscores = count; }

		public function set showScore(value:Boolean):void { _getScore = value?1:0; } 
		public function set showData(value:Boolean):void { _getData = value?1:0; }
		public function set showPlayerName(value:Boolean):void { _getPlayerName = value?1:0; }
		public function set showEmptyRanks(value:Boolean):void { _showEmptyRanks = value?1:0; }

		public function get snapshotId():int { return _snapshotId; }
		public function get startRank():int { return _startRank; }
		public function get numOfHighscores():int { return _numOfHighscores; }

		public function get showScore():Boolean { return ( _getScore == 1)?true:false; } 
		public function get showData():Boolean { return ( _getData == 1)?true:false; }
		public function get showPlayerName():Boolean { return ( _getPlayerName == 1)?true:false; }
		public function get showEmptyRanks():Boolean { return ( _showEmptyRanks == 1)?true:false; }

/*
		public function get getScore():uint { return _getScore; }
		public function get getData():uint { return _getData; }
		public function get getPlayerName():uint { return _getPlayerName; }
		public function get getEmptyRanks():uint { return _showEmptyRanks; }
*/		
	}
}